#ifndef _STRIPLED_USART_H
#define _STRIPLED_USART_H
#include "config.h"

enum
{
	LED_OFF,
	LED_ON,
	LED_FLASH
};

void StripLed_Init_RX_CMD(void);

void StripLed_Reset_RX_CMD(void);

void StripLed_Tx_Cmd(u8 cmd);
void StripLed_Rx_Cmd(u8 cmd);

void StripLed_Enter_Send_Cmd(const u8 cmd,u8 *data, u8 data_len,u8 addr,u8 repeat);

//main
void StripLed_Tx_Cmd_Handle(void);
void StripLed_RX_Cmd_Handle(void);

void StripLed_Send_Game_HeartBeat(void);

void StripLed_Send_Game_Statue(u8 player);
void StripLed_Send_Game_Warning(u8 warning_id, u8 addr);

void StripLed_Send_Game_Win_JP(u8 status, u8 jp_cnt,u8 jp_cnt_max, u8 addr);
void StripLed_Send_Game_JP_Done(u8 addr);

void StripLed_Send_Ball_Pos(u8 pos, u8 addr);
void StripLed_Send_Win_Pos(u8 pos, u8 addr);
void StripLed_Send_Party_Time(u8 off_on, u8 addr);
void StripLed_Send_Especial_Pos(u8 pos, u8 addr);
void StripLed_Get_Version(u8 addr);
void StripLed_Send_Flash(u8 id, u8 state, u8 addr);
void StripLed_Send_lottory(u8 state, u8 addr);
u8 Led_Board_Get_Connect_State(u8 *state);
void Led_Board_Reset_State(void);
u8 Led_Board_Err(void);
u8 Led_Board_State(void);

#endif

